package com.design.model;

import com.design.model.behavior.FlyNoWay;

/**
 * 测试类
 *
 * @author by liuxin
 * @version 0.1
 */
public class Test {

    public static void main(String[] args) {
        Duck animal = new AnimalDuck();
        animal.performFly();
        animal.performQuestion();

        animal.setFlyBehavior(new FlyNoWay());
        animal.performFly();
    }
}
